#include "PAP_defs.h"
#include "derivative.h" /* include peripheral declarations */

// GPIO pin names and respective data direction registers

#define MC34671_FAST        PTBD_PTBD1
#define MC34671_FAST_DD     PTBDD_PTBDD1
#define MC34671_FAST_PULL   PTBPE_PTBPE1
#define MC34671_FAST_PUD    PTBPUD_PTBPUD1 

/* PIN NO LONGER BEING USED
#define MC34671_PPR         PTAD_PTAD3
#define MC34671_PPR_DD      PTADD_PTADD3
#define MC34671_PPR_PULL    PTAPE_PTAPE3
#define MC34671_PPR_PUD     PTAPUD_PTAPUD3
*/ 

#define MC34671_CHG         PTAD_PTAD2
#define MC34671_CHG_DD      PTADD_PTADD2
#define MC34671_CHG_PULL    PTAPE_PTAPE2
#define MC34671_CHG_PUD     PTAPUD_PTAPUD2

#define MC34671_EN      PTBD_PTBD0
#define MC34671_EN_DD   PTBDD_PTBDD0

#define SWITCH_8K87    PTBD_PTBD7
#define SWITCH_8K87_DD PTBDD_PTBDD7

#define SWITCH_47K5     PTBD_PTBD6
#define SWITCH_47K5_DD  PTBDD_PTBDD6



#define GPIO_OUTPUT 1
#define GPIO_INPUT  0

#define GPIO_PULL_ENABLE 1
#define GPIO_PULL_DISABLE 0

#define GPIO_PULLDOWN 1
#define GPIO_PULLUP 0

#define GPIO_SWITCH_ON 1
#define GPIO_SWITCH_OFF 0

void vfnGPIO_Init (void);

